aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/payment/[id]/print/+server.js
blob: 2fdfc8c1fabaa286b79d1d870d40cebb0bedfd9a (plain) (blame)
1
2
3
4
5
6
7
import { auth, post } from "$lib/utils";
import { json } from "@sveltejs/kit";

export async function POST({ cookies, request }) {
  let body = await request.json();
  return json(post("/print", body, auth(cookies)));
}